home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Audio, Video & Photo / MediaCoder 0.6.2.4200 / MediaCoder-0.6.2.4200.exe / htdocs / prefs / desc.xsl next >
Extensible Markup Language  |  2007-05-13  |  2KB  |  51 lines

  1. <?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
  2.     <!ENTITY nbsp   " ">
  3.     <!ENTITY copy   "©">
  4.     <!ENTITY reg    "®">
  5.     <!ENTITY trade  "™">
  6.     <!ENTITY mdash  "—">
  7.     <!ENTITY ldquo  "“">
  8.     <!ENTITY rdquo  "”"> 
  9.     <!ENTITY pound  "£">
  10.     <!ENTITY yen    "¥">
  11.     <!ENTITY euro   "€">
  12. ]>
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  14. <xsl:output method="html" encoding="utf-8"/>
  15. <xsl:template match="/MediaCoderPrefs">
  16. <strong>Key: </strong>
  17. <xsl:call-template name="GoBranch">
  18. <xsl:with-param name="cur" select="."/>
  19. </xsl:call-template>
  20.  
  21. </xsl:template>
  22.  
  23. <xsl:template name="GoBranch">
  24.     <xsl:param name="cur"/>
  25.  
  26.     <xsl:value-of select="$cur/node/@key"/>
  27.  
  28.     <!--Loop to the deepest level-->
  29.     <xsl:if test="$cur/node/node/@key">.<xsl:call-template name="GoBranch">
  30.         <xsl:with-param name="cur" select="$cur/node"/>
  31.         </xsl:call-template>
  32.     </xsl:if>
  33.  
  34.     <xsl:if test="string-length($cur/node/node/@key)=0">
  35.         <!--Here we come to the deepest level-->        
  36.         <xsl:if test="$cur/node/@type='int' or $cur/node/@type='float'">
  37.         <xsl:if test="$cur/node/@min or $cur/node/@max">
  38.          <strong>Range: </strong><xsl:value-of select="$cur/node/@min"/>~<xsl:value-of select="$cur/node/@max"/>
  39.         </xsl:if>
  40.         </xsl:if>
  41.         <xsl:if test="$cur/node/@type='string'">
  42.          <strong>Max Length: </strong><xsl:value-of select="$cur/node/@max"/>
  43.         </xsl:if>
  44.         <xsl:if test="$cur/node/desc">
  45.         <br /><strong>Description:</strong>
  46.          <xsl:value-of select="$cur/node/desc"/>
  47.         </xsl:if>
  48.         <br/> 
  49.     </xsl:if>
  50. </xsl:template>
  51. </xsl:stylesheet>